package com.ruoyi.report.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: HanZaiEmail 邮件实体
 * Date: 2022/3/29
 * Time: 12:40
 **/
public class HanZaiEmail {

    //邮件主键
    private Integer emailId;
    //发送人,关联Users表的名称
    private String userId;

    //接收人,关联Users表的名称
    private String receiveId;
    //标题
    private String topic;
    //内容
    private String content;
    //发送日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    private Date sendTime;
    //是否已读（未读，已读）
    private String isRead;

    private List<HanZaiEmailUserName> emailUserName;

    public HanZaiEmail() {
    }

    public Integer getEmailId() {
        return emailId;
    }

    public void setEmailId(Integer emailId) {
        this.emailId = emailId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(String receiveId) {
        this.receiveId = receiveId;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public List<HanZaiEmailUserName> getEmailUserName() {
        return emailUserName;
    }

    public void setEmailUserName(List<HanZaiEmailUserName> emailUserName) {
        this.emailUserName = emailUserName;
    }

    @Override
    public String toString() {
        return "HanZaiEmail{" +
                "emailId=" + emailId +
                ", userId='" + userId + '\'' +
                ", receiveId='" + receiveId + '\'' +
                ", topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", isRead='" + isRead + '\'' +
                ", emailUserName=" + emailUserName +
                '}';
    }
}
